//
//  main.m
//  猴子吃🍑
//
//  Created by apple on 15/7/26.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    @autoreleasepool {
    
    //定义变量
        
        int day,a1;
        a1 = 1;
        day = 10;
        /*for ( ; day >= 1; day--)
        {
            a1 = (a1 + 1)*2;
            NSLog(@"day = %d,  a1 = %d\t",day,a1);
        }*/
        
       // NSLog(@"day = %d,  a1 = %d",day,a1);
        while (day == 10)
        {
            a1 = 1;
            NSLog(@"day = %d,  a1 = %d",day,a1);
        
            while (day >1)
            {
                a1 = (a1 +1)*2;
                day--;
                NSLog(@"day = %d,  a1 = %d",day,a1);
        
            }
        }
       // printf("%d,%d",day,a1);
        return 0;
    }
    
}
